﻿<Controls:MetroWindow x:Class="WPF.TestEditor.ConstantPicker"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
        ShowInTaskbar="True" Width="350" Height="250" BorderBrush="{DynamicResource AccentColorBrush}" BorderThickness="1"
        ShowMinButton="False"  ShowCloseButton="True" ShowMaxRestoreButton="False" WindowStyle="SingleBorderWindow" WindowStartupLocation="CenterOwner"
        Left="{Binding Settings[Left], Mode=TwoWay, Converter={StaticResource SettingConv}}"
        Top="{Binding Settings[Top], Mode=TwoWay, Converter={StaticResource SettingConv}}"                           
        SaveWindowPosition="True" 
                       Style="{DynamicResource metroWindowKey}"  Icon="/WPF.EasyTestEditor;component/Resources/app.ico"
                      >
    
    <Border Margin="20">
        <Grid Background="Transparent">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="24" />
                <RowDefinition Height="*" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <ComboBox Grid.Row="0" Name="cmbConstName" IsEditable="True"  Style="{DynamicResource MetroComboBox}"/>
            <TextBox Name="txtValue" Grid.Row="2" VerticalAlignment="Top" AcceptsReturn="True" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto"/>
            <Border Grid.Row="3" >
                <StackPanel  HorizontalAlignment="Right" Orientation="Horizontal" Margin="0 0 -15 -15">
                    <Button Name="btnOk" Content="Save" Style="{DynamicResource MetroButton}" Margin="5" Padding="15 5 15 5" Click="btnOk_Click"/>
                    <Button Name="btnCancel" Content="Cancel" Style="{DynamicResource MetroButton}" Margin="5" Padding="15 5 15 5" Click="btnCancel_Click"/>
                </StackPanel>
            </Border>
        </Grid>
    </Border>
</Controls:MetroWindow>
